package com.itheima.lambda;

public class LambdaDeno {

    public static void main(String[] args) {

        useShowHandler(new ShowHandler() {

            @Override

            public void show() {
                System.out.println("北京你真好");

            }

        });

        System.out.println("====================");

        useShowHandler(()->{
            System.out.println("北京北京你真好");
        });
    }

    public static void useShowHandler(ShowHandler showHandler) {
        showHandler.show();
    }
}
